package cn.lttest.client.service;

import java.util.List;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import cn.lttest.pojo.User;
import cn.lttest.service.UserService;

public class ClientStart {
	public static void main(String[] args) {
		System.out.println("hello dubbo");

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        
        System.out.println("start  Get  service's data!");
        UserService service = (UserService) context.getBean("demoService");

        List<User> response = service.queryAll();
        
        System.out.println(response);
	}
}
